import org.afolsn.user.*;

class BootStrap {

	def userService
	
	def init = { servletContext ->
   		User user = userService.loadUser('admin');
		if(!user) {
			user = new User()
			user.login = 'admin'
			user.password = 'admin'
			userService.registerUser(user)
		}
	}

    def destroy = {
    }
}
